<div>
    <table>
        <tr>
            <td>Id</td>
            <td>carrera</td>
            <td></td>
            <td></td>
        </tr>
        <?php if(count($this->registrar)) :?>
        <?php foreach($this->registrar as $carrera) :?>
        <tr>
            <td><?php echo $carrera->id_carrera;?></td>
            <td><?php echo $carrera->nombre_carrera;?></td>
            <td><a href="/registrar/editarcarrera/id_carrera/<?php echo $carrera->id_carrera ?>">Editar</td>
            <td><a href="/registrar/borrarcarrera/id_carrera/<?php echo $carrera->id_carrera ?>">Borrar</td>
        </tr>
        <?php endforeach;?>
        <?php else :?>
        <tr>
            <td>no hay datos</td>
        </tr>
        <?php endif;?>
    </table>
</div>
